class CreateIncidentReports < ActiveRecord::Migration
  def self.up
    create_table :incident_reports do |t|
      t.integer :incident_id
      t.integer :report_id

      t.timestamps
    end
    add_index(:incident_reports, [:incident_id, :report_id], :unique => true)
  end

  def self.down
    remove_index(:incident_reports, [:incident_id, :report_id])
    drop_table :incident_reports
  end
end
